import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}
// 抖音首页配置数据
export function indexData(query) {
    return request({
        url: '/douyin/anchor/index/data',
        method: 'get',
        params: query
    })
}
// 获取背景图片地址
export function getIndexImg(query) {
    return request({
        url: '/douyin/anchor/index/background',
        method: 'get',
        params: query
    })
}
//修改首页背景图片
export function changeImg(data) {
    return request({
        url: 'douyin/anchor/index/change/background',
        method: 'put',
        data: data
    })
}
// 主播下拉框数据
export function selectList(query) {
    return request({
        url: '/douyin/anchor/index/selectList',
        method: 'get',
        params: query
    })
}
// 获取推荐主播列表
export function anchorList(query) {
    return request({
        url: '/douyin/anchor/index/anchor/list',
        method: 'get',
        params: query
    })
}
//保存首页推荐主播设置
export function anchorIndexSave(data) {
    return request({
      url: '/douyin/anchor/index/save', 
      method: 'post',
      data: data
    })
}
